package net.homelinux.chaoswg.io.renga.core.gui.operations.factories;

import net.homelinux.chaoswg.io.higherorderfunctions.AbstractUnaryFunction;
import net.homelinux.chaoswg.io.higherorderfunctions.ConstantFunction;
import net.homelinux.chaoswg.io.higherorderfunctions.UnaryFunction;
import net.homelinux.chaoswg.io.renga.core.gui.operations.CompositeOperation;
import net.homelinux.chaoswg.io.renga.core.gui.operations.Control;

public class CompositeOperationFactory extends AbstractUnaryFunction<CompositeOperation, ConstantFunction<Control>> implements UnaryFunction<CompositeOperation, ConstantFunction<Control>> {

    public CompositeOperation apply(final ConstantFunction<Control> arg0)  {
        return new CompositeOperation(arg0.apply());
    }
}
